﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xinkui.Entity.Common;
using DataFrameworkAccess;
using Xinkui.Common;

namespace Xinkui.DataAccess.Common {
    public partial class CommonDictDataAccess {
        public List<CommonDict_Entity> CommonDict_ListByCode(int code) {

            try {

                DataCommand cmd = DataCommandManager.GetDataCommand("CommonDict_ListByCode");
                cmd.SetParameterValue("@TypeCode", code);
                List<CommonDict_Entity> pageList = cmd.ExecuteEntityList<CommonDict_Entity>();

                return pageList;
            }
            catch (Exception ex) {
                ExceptionHelper.ProcessException(ex);
            }

            return new List<CommonDict_Entity>(0);

        }

    }
}
